package com.ruoyi.socket.gateway;

/***
 *  @description
 *  @author zhao
 *  @date: 2020/6/15
 *  @version: v1.0
 */
public class GateWayDataInject {

    public static void main(String[] args) throws InterruptedException {
        String host = "127.0.0.1";
        int port = 8090;
        NettyClientPool clientPool = NettyClientPool.getInstance(host, port);

        while (true) {
            String data = "0A0130121833323336333933382D33323336353131312D3535373036301A0336303922343C32634D70303030303031303130303030303130303030303030343830303830303131353133363332333833393336333233303E3A05686374656C420474657374";
            clientPool.sendMsg(data);
            Thread.sleep(1000);
        }

    }
}
